﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace FigureDraw
{
    public class GDIPlusAdapter : Target
    {

        private GDIPlusAdaptee gdiPlusAdaptee;


        public GDIPlusAdapter()
        {
            // TODO: Complete member initialization
            gdiPlusAdaptee = new GDIPlusAdaptee();
        }

        public override void DrawLine(Paper drawPaper, Vector2 oldP, Vector2 curP, PenType penType)
        {
            gdiPlusAdaptee.DrawLine(drawPaper, oldP, curP, penType);
        }

        public override void DrawEclipse(Paper drawPaper, Vector2 oldP, Vector2 curP, PenType penType)
        {
            gdiPlusAdaptee.DrawEclipse(drawPaper, oldP, curP, penType);
        }

        public override void DrawRectangle(Paper drawPaper, Vector2 oldP, Vector2 curP, PenType penType)
        {
            gdiPlusAdaptee.DrawRectangle(drawPaper, oldP, curP, penType);
        }

        public override void SavePNG(string filePath)
        {
            gdiPlusAdaptee.SavePNG(filePath);
        }
    }
}
